var $ = getApp(), methods = require("../methods.js");
Page(Object.assign({}, methods, {
	data: {
		count0: 0,
		count1: 0,
		count2: 0,
		count4: 0,
		userinfo: [],
		userlevel: [],
		sysset: [],
		isload: 0,
		loginshow: 0
	},
	_onLoad:function(){
		var that = this
		$.post('my/levelinfo', {}, function (data) {
			if(data.userinfo){
				that.setData({userinfo:data.userinfo,userlevel:data.userlevel,show:true});
				if(data.userinfo['nickname'] == '' || data.userinfo['nickname'] == '[暂无]') that.setData({ loginshow: 1 })
			}
		})
	}
}))